package com.ruoyi;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@EnableScheduling
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@MapperScan(basePackages = {"com.ruoyi.rsikManage.mapper", "com.ruoyi.electricity.mapper" })
public class RuoYiApplication {

    public static void main(String[] args) {
        SpringApplication.run(RuoYiApplication.class, args);

        System.out.println("(♥◠‿◠)ﾉﾞ  重大灾害风险防控系统启动成功   ლ(´ڡ`ლ)ﾞ  \n" +

                " ''-'   `'-'    `-..-'              ");



    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
